CAPsMAN剔除信号质量差的终端

针对CAPsMAN模式下的访问列表(Access-list)失效问题,以下是解决方案。

#熊茂祥版
[php]
:foreach wird in=[/caps-man registration-table find ]
do={
:if ([/caps-man registration-table get $wird rx-signal ] <-86)
do={
/caps-man registration-table remove $wird
}}
[/php]
#Ali版
[php]
:local MAXsignal “-90”;
:local capsClientId;
:local capsClient;
:local capsClientSignal;
:foreach i in=[/caps-man registration-table find] do={
:set capsClientId [/caps-man registration-table get $i];
:set capsClient [/caps-man registration-table get $i mac-address];
:set capsClientSignal [/caps-man registration-table get $i rx-signal];
:if (“$MAXsignal” > $capsClientSignal) do={
/caps-man registration-table remove $i;
:log info “剔除信号质量差的用户 $capsClient Signal $capsClientSignal”;
}
}
[/php]

发表回复